<html>
<head>


<script language="JavaScript">
var item=0;

function teste(e){


  var largura_px = 978;
  var largura_cm = 5670;
  
  var cm_por_px = largura_cm/largura_px

  item++;
  document.forms[0].x.value+= item + "\t" + parseInt(e.clientX*cm_por_px)/100 + "\t" + parseInt(e.clientY*cm_por_px)/100 + "\n"
  
  document.getElementById("l"+item).style.left = e.clientX;
  document.getElementById("l"+item).style.top = e.clientY;

  
  return false;
}

//window.onclick=teste


</script>

<style type="text/css"> 
body { margin-left:0px; margin-top:0px; }
</style>

</head> 
<body bgcolor=blue>
<a href="#" onclick="return teste(event);" style="cursor: crosshair"><img src="eletrica-blocoC.jpg" width=978 hieght=433 border=0></a>

<form>
<textarea name=x width=100 rows=6>&nbsp;</textarea>
<input type=button onclick="item--" value="Volta">

</form>


<script>

for (var i=1; i<200; i++)
  document.write("<div id=\"l"+i+"\" style=\"position: absolute; left:-200px; top:-200px; z-index:"+i+";font-size: 9px; font-weight: bold\">"+i+"</div>");

</script>
</body>
</html>
